package com.fs.uc.base;

import io.smallrye.config.ConfigMapping;

import java.util.List;

/**
 * @author 崔超
 * 2021/12/8
 */
@ConfigMapping(prefix = "custom")
public interface MyConfig {


    Wechat wechat();

    Aliyun aliyun();

    Nsq nsq();

    Nacos nacos();

    Minio minio();

    interface Wechat {
        String appId();

        String appSecret();

        String programState();
    }

    interface Aliyun {
        String accessKeyId();

        String accessKeySecret();

        String signName();

        String templateCode();
    }

    interface Nsq {
        String lookUp();

        List<String> nodes();
    }

    interface Nacos {
        String serverAddress();

        String group();

        String serviceName();

        String instanceIp();

        Integer instancePort();
    }

    interface Minio{
        String address();
        String accessKey();
        String secretKey();
    }
}
